const express = require("express")
const router = express.Router();
const middleware = require("../middleware/middleware")//中间件

const userResponese = require("../api/user")
router.post("/auth/login", userResponese.Login)
router.get("/users/userInfo", middleware.jwt, userResponese.getUserInfo)

// router.get("/user", (req, res1) => {
//     global.dbConnection.query('select * from courses', (err, res) => {
//         if (err) {
//             console.log("查询失败", err)
//         }
//         console.log(res)
//         res1.send("success")
//     })
// })


module.exports = router;

